import Vue from 'vue';

const read_all = (params) => {
    return Vue.prototype.$u.post('msg/read-all', params);
};

const list = (params) => {
    return Vue.prototype.$u.get('msg/list', params);
};

const detail = (id) => {
    return Vue.prototype.$u.get(`msg/detail/${id}`);
};


export default {
    list,
    detail,
    read_all
};
